"use strict";
const common_vendor = require("../common/vendor.js");
const useSearchStore = common_vendor.defineStore(
  "search",
  () => {
    const hisList = common_vendor.ref([]);
    function setHistory(newVal) {
      hisList.value = newVal;
    }
    function clearHistory() {
      hisList.value = [];
    }
    return {
      hisList,
      setHistory,
      clearHistory
    };
  },
  {
    persist: true
  }
);
exports.useSearchStore = useSearchStore;
